package org.jha.card.mwrf;

import org.jha.base.CommonTools;

import com.sun.jna.ptr.LongByReference;
import com.sun.jna.win32.StdCallLibrary;

public interface Mwrf32 extends StdCallLibrary {
	public Mwrf32 INSTANCE = CommonTools.loadLibrary(CommonTools.getLibPath()
			+ "\\mwrf\\mwrf32", Mwrf32.class);

	// connect
	int rf_init(int start, int baute);

	int rf_get_status(int icdev, int status);

	// beep
	int rf_beep(int icdev, int time);

	int rf_load_key_hex(int icdev, int mode, int sector, String string);

	// read card no
	int rf_card(int icdev, int mode, LongByReference snr);

	int rf_halt(int icdev);

	int rf_write(int icdev, int _Adr, String _Data);

	int rf_read(int icdev, int _Adr, byte[] data);

	// int rf_request(int icdev, char _Mode, IntByReference TagType);
	//
	// int rf_anticoll(int icdev, char _Bcnt, LongByReference _Snr);
	//
	// int rf_select(int icdev, long _Snr, String _Size);
	//
	int rf_authentication(int icdev, int _Mode, int _SecNr);

	// int rf_HL_write(int icdev, char _Mode,char _Adr, long[] _Snr, char[]
	// _Data);
	//
	// int rf_HL_read(int icdev, char _Mode, char _Adr, long _Snr, char[] _Data,
	// long _NSnr);
}
